package com.cmc.cloud.cmclink.doc.vo.special.rejectreasonvo;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.Length;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 特种货审批长常用拒绝理由 Base VO，提供给添加、修改、详细的子 VO 使用 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 * 
 * @author codegen
 */
@Data
public class SpecialCargoRejectReasonBaseVO {

    @Schema(description = "理由类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotBlank(message = "specialcargorejectreason.reasontype.notblank")
    @Length(max = 20, message = "specialcargorejectreason.reasontype.length")
    private String reasonType;

    @Schema(description = "中文描述", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "specialcargorejectreason.desccn.notblank")
    @Length(max = 200, message = "specialcargorejectreason.desccn.length")
    private String descCn;

    @Schema(description = "英文描述", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "specialcargorejectreason.descen.notblank")
    @Length(max = 200, message = "specialcargorejectreason.descen.length")
    private String descEn;

    @Schema(description = "排序号")
    @NotNull(message = "排序号不能为空")
    private Integer sortNo;

    @Schema(description = "禁用状态", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "specialcargorejectreason.enable.notnull")
    private Boolean enable;

}
